<!-- START login -->
<script type="text/javascript" src="includes/js/validation.js"></script>
<div id="login" style="display:none" title="{LANG-LOGIN}">
<form method="post" action="auth.php">

<p>
{LANG-USERNAME}&nbsp;[<a href="register.php">{LANG-REGISTER}</a>]<br />
<input type="text" name="username" class="text" size="30" id="user" tabindex="1" onblur="validateAlphaNumeric('user', 'usererr');" />
<div id="usererr"></div>
</p>

<p>
{LANG-PASSWORD}&nbsp;[<a href="login.php?mode=lostpassword">{LANG-FORGOT}</a>]<br />
<input type="password" name="password" class="text" size="30" id="pass" tabindex="2" onblur="validateAlphaNumeric('pass', 'passerr');" />
<div id="passerr"></div>
</p>

<p>
<input type="checkbox" name="auto_login" value="1" />{LANG-REMEMBERTXT}
</p>

<p>
<input type="submit" value="{LANG-LOGIN}" class="submit" />
</p>
</form>
</div>
<!-- END login -->

<!-- START searchBar -->
<div id="qSearch" style="display:none" title="{LANG-QUICKSEARCH}">
<form method="get" action="#">
<input type="text" id="searchKeyword" class="text" size="30" />&nbsp;
<input type="button" value="{LANG-SEARCH}" id="iSearch" class="submit" />
</form>
<div id="lsloading"></div>
<div id="livesearch"></div>
</div>
<!-- END searchBar -->

<table border="0" class="table" cellspacing="1" cellpadding="3">
<tr>
<td align="center" class="td" valign="top"><img src="template/simple2/images/boardlogo.png" alt="{TITLE}" title="{TITLE}" /></td>
</tr><tr>

<!-- START admin -->
<td class="ui-widget-content">{LANG-WELCOME} <b>{LOGGEDUSER}</b> [<a href="login.php?mode=logout">{LANG-LOGOUT}</a>]<br /><a href="Profile.php#/PM/Inbox">{NEWPM}</a><br /><a href="acp/index.php">{LANG-CP}</a><br /><a href="Search.php?action=newposts">{LANG-NEWPOSTS}</a></td>
<!-- END admin -->

<!-- START user -->
<td class="ui-widget-content">{LANG-WELCOME} <b>{LOGGEDUSER}</b> [<a href="login.php?mode=logout">{LANG-LOGOUT}</a>]<br /><a href="Profile.php#/PM/Inbox">{NEWPM}</a><br /><a href="Search.php?action=newposts">{LANG-NEWPOSTS}</td>
<!-- END user -->

<!-- START guest -->
<td class="ui-widget-content">{LANG-WELCOMEGUEST}! <a href="#" onclick="$('#login').dialog('open');">{LANG-LOGIN}</a> | <a href="register.php">{LANG-REGISTER}</a></td>
<!-- END guest -->

</tr><tr>
<!-- START userMenu -->
<td class="ui-widget-content" align="center"><a href="{ADDRESS}">{LANG-HOME}</a> - <a href="#" onclick="$('#qSearch').dialog('open');">{LANG-SEARCH}</a> - <a href="#" onclick="$('#help').dialog('open');">{LANG-HELP}</a> - <a href="Members.php">{LANG-MEMBERLIST}</a> - <a href="Profile.php">{LANG-PROFILE}</a></td>
<!-- END userMenu -->

<!-- START guestMenu -->
<td class="ui-widget-content" align="center"><a href="{ADDRESS}">{LANG-HOME}</a> - <a href="#" onclick="$('#help').dialog('open');">{LANG-HELP}</a></td>
<!-- END guestMenu -->

</tr><tr>
<td valign="top" class="td">
